<%@ include file="/common/taglibs.jsp"%>

<title><fmt:message key="speechList.title"/></title>
<content tag="heading"><fmt:message key="speechList.heading"/></content>
<meta name="menu" content="SpeechMenu"/>

<c:set var="buttons">
    <input type="button" style="margin-right: 5px"
        onclick="location.href='<c:url value="/editSpeech.html"/>'"
        value="<fmt:message key="button.add"/>"/>

    <input type="button" onclick="location.href='<c:url value="/mainMenu.html"/>'"
        value="<fmt:message key="button.done"/>"/>
</c:set>

<c:out value="${buttons}" escapeXml="false"/>

<display:table name="speechList" cellspacing="0" cellpadding="0" requestURI=""
    id="speechList" pagesize="25" class="table speechList" export="true">
    <display:column property="title" escapeXml="true" sortable="true"
         url="/editSpeech.html" paramId="id" paramProperty="id"
         titleKey="speech.title"/>
    <display:column property="user.username" escapeXml="true" sortable="true"
         titleKey="speech.user"/>
    <display:column sortProperty="TMProject.name" escapeXml="true" sortable="true"
		    titleKey="speech.TMProject">
	<c:out value="${speechList.TMProject.id}"/>:<c:out value="${speechList.TMProject.name}"/>		
    </display:column>
    <display:column  escapeXml="true" sortable="true"
		    titleKey="speech.date">
	<fmt:formatDate value="${speechList.date}" pattern="MM/dd/yyyy"/>
    </display:column>
    <display:setProperty name="paging.banner.item_name" value="speech"/>
    <display:setProperty name="paging.banner.items_name" value="speechs"/>
</display:table>

<c:out value="${buttons}" escapeXml="false"/>

<script type="text/javascript">
    highlightTableRows("speechList");
</script>
